package com.fy.fyzf.dialog;

import android.content.Context;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;

import com.fy.fyzf.R;

public class DeleteWarningDialog extends BaseDialog {

    private TextView tvTitle;
    private TextView tvContent;

    public DeleteWarningDialog(Context mContext) {
        super(mContext, R.layout.dialog_delete_warning, Gravity.CENTER, false);
        init();
    }

    private String title;
    private String content;
    public DeleteWarningDialog setTitle(String s){
        title = s;
        tvTitle.setText(title);
        return this;
    }

    public DeleteWarningDialog setContent(String s){
        content = s;
        tvContent.setText(content);
        return this;
    }
    private void init() {
        tvTitle = getView(R.id.tv_title);
        tvContent = getView(R.id.tv_detail);
        TextView tvCancel = getView(R.id.tv_cancel);
        TextView tvSure = getView(R.id.tv_sure);

        tvCancel.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                toggleDialog();
            }
        });

    }

}
